package cc.dowell.vo.echart;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Option {

    private XAxis xAxis;   //x轴
    private YAxis yAxis;   //x轴
    private List<Serie> series;  //柱状图集合

    //fastjson使用： @JSONField(name = “Name”)
    @JsonProperty("xAxis")
    public XAxis getXAxis() {
        return xAxis;
    }

    @JsonProperty("yAxis")
    public YAxis getYAxis() {
        return yAxis;
    }

    public Option() {
        this.xAxis = new XAxis();
        this.yAxis = new YAxis();
        this.series = new ArrayList<>();
    }
}